<?php

namespace App\Models;

use DateTimeInterface;
use Illuminate\Database\Eloquent\Model;

class HospitalInfo extends Model
{

    protected function serializeDate(DateTimeInterface $date)
    {
        return $date->format($this->dateFormat ?: 'Y-m-d H:i:s');
    }

    protected $fillable = [
        'banner',
        'title_logo',
        'tel',
        'description',
        'address',
        'open_date',
        'lng',
        'lat',
        'images',
        'lines',
    ];

    protected $casts = [
        'banner' => 'json',
        'images' => 'json',
        'lines' => 'json',
    ];
}
